const koa = require('koa');
const router = require('koa-router')();
const cors = require('koa2-cors');
const app = new koa();
router.get('/',async ctx=>{
    ctx.body="首页"

})
router.get('/login',async ctx=>{
    ctx.body="首页登录"

})
app.use(router.routes())
app.use(cors());
app.listen(8080);